To determine polarity we look at the electronegativity differences between individuals bonds between atoms and then at the compound as a whole. Note that we can have a molecule where individual bonds are polar but overall the molecule is non-polar.
This simulation from PhET will let you get a "feel" for Polarity. It maybe work best to visit their simulation directly for a larger version.